﻿using System;
using System.Diagnostics.CodeAnalysis;

namespace Permission.Abstract;

public interface IPermissionDefinitionContext
{


    IServiceProvider ServiceProvider { get; }

    PermissionGroupDefinition GetGroup([NotNull] string name="");


    PermissionGroupDefinition AddGroup([NotNull] string name, string displayName = "");


    void RemoveGroup(string name);

    PermissionDefinition GetPermissionOrNull([NotNull] string name);
}
